<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <button onclick="alert('广告1')">点击一下</button>
    <hr>
    <a href="javascript:alert('广告2')">点击一下</a>
</body>
</html>